/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Clases;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.Comparator;

class ComparadorNotaFinal implements Comparator{

    public int compare(Object emp1, Object emp2){

        float notaest1 = ((Estudiante)emp1).getNotafinal();
        float notaest2 = ((Estudiante)emp2).getNotafinal();

        if(notaest1 < notaest2)
            return 1;
        else if(notaest1 > notaest2)
            return -1;
        else
            return 0;
    }

}
